package com.oj.system.service.question;

import com.oj.common.core.domain.R;
import com.oj.common.core.domain.TableDataInfo;
import com.oj.system.domain.question.dto.QuestionEditDTO;
import com.oj.system.domain.question.dto.QuestionQueryDTO;
import com.oj.system.domain.question.dto.QuestionSaveTO;
import com.oj.system.domain.question.vo.QuestionDetailVO;

/**
 * @Description
 * @Author bin
 * @Date 2025/4/28
 */
public interface IQuestionService {

    TableDataInfo list(QuestionQueryDTO questionQueryDTO,String token);

    boolean add(QuestionSaveTO questionDTO);

    R<QuestionDetailVO> detail(Long questionId);

    R<Void> delete(Long questionId);

    R<Void> edit(QuestionEditDTO questionDTO);
}
